package edu.ynu.se.xiecheng.achitectureclass.domain;


import lombok.AllArgsConstructor;
import lombok.Data;

@Data
@AllArgsConstructor
public class Result {
    private Boolean code;
    private Object  data;
    private String  msg;

    public Result(){}


    public Result(Boolean code){
        this.code= code;
    }

    public Result(Boolean code, Object data){
        this.code= code;
        this.data=data;
    }

    public Result(String msg){
        this.code= false;
        this.msg=msg;
    }
}
